import request from "@/util/request";
enum API{
    VIDEO_SET="share/set",
    VIDEO_SET_PAGE="share/set/page",
}
export function reqCreateVideoSet(videoSet: any){
    return request({
        url: API.VIDEO_SET,
        method: "post",
        data: videoSet
    });
}
export function reqUpdateVideoSet(videoSet: any){
    return request({
        url: API.VIDEO_SET,
        method: "put",
        data: videoSet
    });
}
export function reqGetVideoSetPage(query: any){
    return request({
        url: API.VIDEO_SET_PAGE,
        method: "get",
        params: query
    });
}
export function reqGetVideoSet(id: number){
    return request({
        url: API.VIDEO_SET + "/" + id,
        method: "get",
    });
}
export function reqDeleteVideoSet(id: number){
    return request({
        url: API.VIDEO_SET + "/" + id,
        method: "delete",
    });
}
